package com.lsu.prototype.homework;

import java.io.*;

/**
 * 马
 *
 * @Author wang suo
 * @Date 2020/11/30 0030 13:13
 * @Version 1.0
 */
class Horse implements Serializable {
    private int distance = 0;

    int getDistance() {
        return distance;
    }

    /**
     * 每次距离+10
     */
    void run() {
        this.distance += 10;
    }

    /**
     * 显示路程
     */
    void show() {
        System.out.println("distance = " + this.distance);
    }
}